
<div class='profile_page'>

    <div id='profile_stats'>

        <h1>Profiel van <?=$profile->display_name;?></h1>

        <? $this->load->view("posts/avatar.php", array("filename" => $profile->filename, "css_class" => "avatar"));?>

        <?= form_open('profile/save'); ?>
        <?= form_label('Land: ', 'country'); ?>
        <?= form_input(array(
        'name'	=> 'country',
        'id'	=> 'country',
        'value' => $profile->country))?>
        <br/>

        <?= form_label('Adres: ', 'address'); ?>
        <?= form_input(array(
        'name'	=> 'address',
        'id'	=> 'address',
        'value' => $profile->address))?>
        <br/>

        <?= form_label('Mobiel nr: ', 'cellphone'); ?>
        <?= form_input(array(
        'name'	=> 'cellphone',
        'id'	=> 'cellphone',
        'value' => $profile->cellphone_nr))?>
        <br/>

        <?= form_label('Email: ', 'email'); ?>
        <?= form_input(array(
        'name'	=> 'email',
        'id'	=> 'email',
        'size'  => '40',
        'value' => $profile->email))?>
        <br/>

        <?= form_label('Schermnaam: ', 'display_name'); ?>
        <?= form_input(array(
        'name'	=> 'display_name',
        'id'	=> 'display_name',
        'value' => $profile->display_name))?>

        <br/>
        <!-- insert more editable functions here -->
        <br/>

        <?= form_submit('submit', 'Save'); ?>
        <?= form_close(); ?>
        <br/>
        <h3>Upload avatar</h3>
        <?= $error;?>
        <?= form_open_multipart('profile/upload_avatar');?>
        <input type="file" name="userfile" size="20" />
        <br/><br/>
        <input type="submit" value="upload" />
        <?= form_close() ?>

    </div>

    <?  $this->load->view("profiles/events_attending", array("events_attending"=>$events_attending));?>

</div>

<?  $this->load->view("profiles/recent_activity", array("recent_posts"=>$recent_posts));?>

